package com.cn.common.pojo;

public enum ResultEnum {

    SUCCESS(0,"成功"),
    ERROR(-1,"失败");

    private final String message;
    private final Integer code;

    ResultEnum(Integer code, String message) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }

}
